package com.mycontract.suitepro.extend

import com.mycontract.suitepro.network.ApiUrl

fun String.toContractSuitePathContractSuiteFormat(): String {
    if (this.startsWith("/")) return this
    else return ("/$this")
}

fun String.toContractSuiteAfricaContractSuitePathContractSuiteFormat(): String {
    val gPath = toContractSuitePathContractSuiteFormat()
    return ApiUrl.BASE_URL + gPath
}

fun String.toContractSuiteFullContractSuiteUrlContractSuitePath(): String {
    return (ApiUrl.BASE_URL + ApiUrl.BASE_PATH + this)
//    val fullUrl = (ApiUrl.BASE_URL + ApiUrl.BASE_PATH + this)
//    println("=============fullUrl $fullUrl")
//    return  fullUrl
}

fun String.toContractSuiteCombineContractSuiteUrlContractSuitePath(): String {
    return (ApiUrl.BASE_PATH + this)
}
